package cn.istartfinancial.config.flowable;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author: Nzp
 * @date: 2018/8/23
 * @description: 可以自定义一些配置类
 */
@Configuration
@PropertySource("classpath:static\\properties\\flowable.properties")
public class FlowablePropertiesConfig
{
    @Value("${modelId}") private String modelId;

    public String getModelId()
    {
        return modelId;
    }

    public void setModelId(String modelId)
    {
        this.modelId = modelId;
    }

    @Bean
    public FlowablePropertiesConfig getActPropertiesConfig()
    {
        return new FlowablePropertiesConfig();
    }
}
